import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.authorityApp}/s/deptInfoApprove/search`,
  exportUrl: `${defaultSettings.ctx.authorityApp}/s/deptInfoApprove/search`,
  delUrl: `${defaultSettings.ctx.authorityApp}/s/deptInfoApprove/remove`,
}

// 审核通过
export function detail(id,reviewId) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/deptInfoApprove/detail`,
    method: 'get',
    params: {
      id: id,
      reviewId:reviewId
    }
  })
}


// 审核通过
export function approve(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/deptInfoApprove/approve`,
    method: 'post',
    data:data,
  })
}


// 审核拒绝
export function reject(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/deptInfoApprove/reject`,
    method: 'post',
    data:data
  })
}
